package com.api.demo.dto.business.order;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: 订单支付DTO
 * @author: yanming
 * @createDate: 2022/12/28 16:38
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ApiOrderPayDTO extends ApiDTO implements Serializable {
    @ApiModelProperty(value = "订单id", required = true)
    @NotNull(message = "订单id不能为空")
    private Long id;

    @ApiModelProperty(value = "支付方式", required = true)
    @NotNull(message = "请选择支付方式")
    private PaymentMethod paymentMethod;
}